package com.kun.service_train.controller;


import com.kun.service_train.entity.vo.CheckVo;
import com.kun.service_train.service.CheckService;
import com.kun.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author testjava
 * @since 2021-11-05
 */
@RestController
@RequestMapping("/service_train/check")
public class CheckController {
    @Autowired
    private CheckService checkService;
    @PostMapping("getCheck")
    public R getCheck(@RequestBody(required = false) CheckVo checkVo){
        List<CheckVo> allCheck = checkService.getAllCheck();

        return R.ok().data("allCheck",allCheck);



    }
}

